package com.team.bus.module.file.service;

import com.team.bus.module.file.model.File;
import com.team.bus.module.file.model.FileRecord;
import com.team.bus.module.file.pagemodel.PFiler;
import org.zjframework.traceframe.common.model.DataGrid;
import org.zjframework.traceframe.common.service.ICommonService;
import org.zjframework.traceframe.common.util.JSONUtil;

import java.util.List;

/**
 * Created by John on 2018/3/28.
 */
public interface IFileService extends ICommonService {
    public JSONUtil add(File file);
    public DataGrid<PFiler> tree(String name, String number, String reader, String isindefile);
    public JSONUtil del(String ids);
    public JSONUtil jieyue(String id,String borrower,String number,int copies);
    public JSONUtil guihuan(String id,String borrower,String number,int copies);
    public JSONUtil edit(File file);
    public DataGrid<FileRecord> recordtree(String filename, String start, String end);
}
